how to find primitive root